package cate.game.role.bag.storehouse.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBBag;
import cate.game.role.Role;
import cate.game.role.bag.rune.RuneBag;
import cate.game.role.bag.storehouse.StoreHouse;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "仓库 初始化数据 の 请求")
public class StoreHouseInitResp implements MsgOutput {

    @NoteField(value = "仓库背包数据")
    public StoreHouse data;

    public StoreHouseInitResp() {
    }

    public StoreHouseInitResp(Role role) {
        this.data = role.getBag().storeHouse;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.STORE_HOUSE_INIT_RESP;
    }
}
